package classes;

import java.awt.Robot;
import java.awt.event.InputEvent;

public class CoordenadaVerts {
	public void posicionaMouse(Robot r) {
		r.mouseWheel(2);
		r.mouseMove(599, 731);
		r.delay(100);
	}

	public void clica(Robot r) {
		r.delay(100);
		r.mousePress(InputEvent.BUTTON1_MASK);
		r.delay(100);
		r.mouseRelease(InputEvent.BUTTON1_MASK);
		r.delay(100);
	}

	public void copiaTestes1(Robot r) {
		r.delay(1300);
		r.mouseWheel(2);
		r.mouseMove(1157, 608);
		clica(r);
		r.mouseMove(1155, 725);
		clica(r);
		r.mouseMove(1156, 849);
		clica(r);
		r.mouseMove(861, 1012);
		clica(r);

	}

	/** Testes com anuncio **/

	public void copiaTestes2(Robot r) {
		r.delay(1300);
		r.mouseWheel(4);
		r.mouseMove(1157, 513);
		clica(r);
		r.mouseMove(1155, 636);
		clica(r);
		r.mouseMove(1156, 759);
		clica(r);
		r.mouseMove(861, 915);
		clica(r);

	}

	public void clicaCaptcha(Robot r) {
		r.delay(1300);
		r.mouseMove(1487, 269);
		clica(r);
		r.mouseMove(1810, 126);
	}
}
